package com.nowcoder.community.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.util.Date;

@Data
public class Message {

    /**
     * 自增主键,插入数据后将自增主键设置到对象中
     */
    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer fromId;
    private Integer toId;
    private String conversationId;
    private String content;

    //0-未读;1-已读;2-删除;
    private Integer status;
    private Date createTime;
    
}
